﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HighlightNewsAtHomePage.ascx.cs" Inherits="GUI.Controls.News.HighlightNewsAtHomePage" %>
<div class="homehighlight clearfix">
    <ul class="clearfix row1">
        <asp:Literal ID="ltrRow1" runat="server" />
    </ul>
    <div class="clearfix row2">
        <ul>
            <asp:Literal ID="ltrRow2" runat="server" />
        </ul>
    </div>
</div>
<script type="text/javascript">
    var sportlightnews = $("#sportlight-news");
    if (sportlightnews && sportlightnews.length > 0) {
        $(".homehighlight .row1 li:last").append(sportlightnews.html());
    }

    $(".homehighlight .row1 li:first").addClass("fl");
    $(".homehighlight .row1 li:last").addClass("fr");
    $(".homehighlight .row1 h2").addClass("desc");
    $(".homehighlight .row2 li:first").addClass("first");
    $(".homehighlight .row2 li").height(function () {
        var maxHeight = 0;
        $(".homehighlight .row2 li").each(function () {
            if (maxHeight < $(this).height()) {
                maxHeight = $(this).height();
            }
        });
        return maxHeight;
    });
    $(".homehighlight .desc").height(function () {
        var maxHeight = 0;
        $(".homehighlight .desc").each(function () {
            if (maxHeight < $(this).height()) {
                maxHeight = $(this).height();
            }
        });
        return maxHeight;
    });
    
</script>
